 $(document).ready(function () {
 
        //Prepare jtable plugin
        $('#ConsommateurTableContainer').jtable({
            title: 'Listes des consommateurs',
//            selecting: true,
            paging: true, //Enables paging
            pageSize: 10, //Actually this is not needed since default value is 10.
            sorting: true, //Enables sorting
            defaultSorting: 'Nom ASC', //Optional. Default sorting on first load.
            
            actions: {
            	listAction: '/AgenceVoyage/consommateurs/getAllConsommateurs',
                updateAction: '/spring/consommateurs/updateConsommateur',
                deleteAction: '/spring/consommateurs/deleteConsommateur'
            },
            fields: {
                Id: {
                    key: true,
                    create: false,
                    edit: false,
                    list: false
                },
                
                
                Identifiant: {
                    title: 'Identifiant',
                    	width: '23%'
                },
                
                MotDePasse: {
                    title: 'MotDePasse',
                    	width: '23%'
                },
                Nom: {
                    title: 'Nom',
                    	width: '23%'
                },
                Prenom: {
                    title: ' Prenom',
                    width: '23%'
                },
                Email: {
                    title: 'Email',
                    width: '23%'
                },
           Adresse: {
                    title: ' Adresse',
                    width: '23%'
                },
                Pays: {
                    title: 'Pays',
                    width: '23%'
                },
                CodePostal: {
                    title: 'Code Postal',
                    width: '23%'
                },
                

            }
            
        });
 
        //Load student list from server
        $('#ConsommateurTableContainer').jtable('load');
    });
 